package com.qinglei.recoup.system.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.qinglei.recoup.common.domain.CommonRes;
import com.qinglei.recoup.system.domain.NurseStatistics;
import com.qinglei.recoup.system.pojo.NurseWorkSearchParam;
import com.qinglei.recoup.system.pojo.NurseWorkVO;

import javax.servlet.http.HttpServletResponse;
import java.time.LocalDate;
import java.util.List;

/**
 * @author syp
 */
public interface NurseStatisticsService extends IService<NurseStatistics> {

    /**
     * 获取指定天的护工统计数据
     * @param userId
     * @param day
     * @return
     */
    NurseStatistics getStatisticsByDay(Long userId, LocalDate day);

    /**
     * 获取历史数据（合计）
     * @param userId
     * @param startData 开始日期
     * @param endDate 结束日期（包括）
     * @return
     */
    NurseStatistics getStatisticsHistory(Long userId, LocalDate startData, LocalDate endDate);

    /**
     * 查询护工工效分页列表
     * @param searchParam
     * @return
     */
    IPage<NurseWorkVO> searchNurseWorkPage(NurseWorkSearchParam searchParam);

    /**
     * 导出护工工效数据列表(二期)
     * @param httpServletResponse
     * @param param
     */
    void exportNurseWork(HttpServletResponse httpServletResponse, NurseWorkSearchParam param);
}
